/*
 * @(#) LoginService.java 2011-9-7
 *
 * Copyright (c) 2011, Strong Technology. All Rights Reserved.
 * Strong Technology. CONFIDENTIAL
 */
package cn.strong.gweva.common.business.service;

import cn.strong.gweva.common.business.entity.LoginEntity;
import cn.strong.gweva.common.business.entity.UserPwdEntity;
import cn.strong.gweva.common.business.entity.db.JxkhUserEntity;

/**
 * 登录
 * 
 * @author lilanfei
 * @version 1.0
 * @since 2011-9-7
 */
public interface LoginService
{
	
	/**
	 * 校验用户名、密码是否正确
	 * @param inputUser
	 * @return
	 * @throws Exception
	 */
	public int checkLoginUser(JxkhUserEntity inputUser) throws Exception;

	/**
	 * 根据用户名，检索登录用户信息。
	 * 
	 * @param userName 用户名
	 * @param ip IP
	 * @return 登录用户信息
	 */
	public LoginEntity doLogin(String userName, String ip) throws Exception;
	
	/**
	 * 校验用户旧密码
	 * 
	 * @param userPwd 用户密码
	 * @return
	 * @throws Exception
	 */
	public int checkOldPwd(UserPwdEntity userPwd) throws Exception;
	
	/**
	 * 修改密码
	 * 
	 * @param userPwd 用户密码
	 * @return
	 * @throws Exception
	 */
	public int changePwd(UserPwdEntity userPwd) throws Exception;

}
